home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10262 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  44 lines

  1. Newsgroups: comp.lang.c
  2. Path: uu4news.netcom.com!zodiac!szh
  3. From: szh@zcon.com (Syed Zaeem Hosain)
  4. Subject: Re: square root
  5. Message-ID: <1996Mar16.055541.8539@zcon.com>
  6. Sender: szh@zcon.com (Syed Zaeem Hosain)
  7. Nntp-Posting-Host: zodiac
  8. Reply-To: szh@zcon.com
  9. Organization: Z Consulting Group
  10. References: <84210-826932839@mindlink.bc.ca>
  11. Date: Sat, 16 Mar 1996 05:55:41 GMT
  12.  
  13. In article <84210-826932839@mindlink.bc.ca>, Kandiah_Ratnavale@mindlink.bc.ca (Kandiah Ratnavale) writes:
  14. >I am trying to learn C
  15. >
  16. >When I try to write a program to calculate a square root, I have included
  17. >stdio.h and math.h and I get an error message saying
  18. >
  19. >"Undefined symbol _sqrt referenced from text segment"
  20. >
  21. >and my program does not compile!
  22. >
  23. >Can anyone clarify the problem and give me some lead as to what I am doing
  24. >wrong?
  25. >
  26. >I am using the Linux OS in X Windows.
  27.  
  28. *Most likely*, the answer to question:
  29.  
  30. 14.3:   I'm trying to do some simple trig, and I am #including <math.h>,
  31.         but I keep getting "undefined: sin" compilation errors.
  32.  
  33. in the FAQ also applies to your situation. Please read the FAQ that can
  34. be found at rtfm.mit.edu:/pub/usenet/comp.lang.c.
  35.  
  36.                                 Z
  37.  
  38.  
  39. -- 
  40. -------------------------------------------------------------------------
  41. | Syed Zaeem Hosain          P. O. Box 610097            (408) 441-7021 |
  42. | Z Consulting Group        San Jose, CA 95161             szh@zcon.com |
  43. -------------------------------------------------------------------------
  44.